package com.cc.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Dish {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "菜品ID")
    private Long id;

    @Schema(description = "菜品名称")
    @TableField("name")
    private String name;

    @Schema(description = "分类ID")
    @TableField("category_id")
    private Long categoryId;

    @Schema(description = "价格")
    @TableField("price")
    private BigDecimal price;

    @Schema(description = "菜品描述")
    @TableField("description")
    private String description;

    @Schema(description = "图片URL")
    @TableField("image_url")
    private String imageUrl;

    @Schema(description = "状态 (0-下架, 1-上架)")
    @TableField("status")
    private Integer status;

    @Schema(description = "创建时间")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    @TableField("updated_at")
    private LocalDateTime updatedAt;
} 